app = {} //The app table is deleted later, so store data in app.app._ = {} instead. Not using the table app.app._ in specific will cause problems.
app.folder = {"Utilities"} //This table should have one key and one value, key of one, value of a string. This is for FUTURE subfolder support.
app.app = {
	caption = "Time",
	options = {
			close = true,
			minimize = true,
			resize = false,
		},
	x = ScrW()*.5 - 128 + 256 + 16,
	y = ScrH()*.5 - 64,
	w = 120,
	h = 58,
	_ = {
		num = nil,
		cur = nil,
		op = nil,
	},
	draw = function(self)
		if not self.visible then
			return
		end
		local s = hack.scheme
		self:DrawWindowPre()
		
		local text = os.date(":%M")
		text = tostring(tonumber(os.date("%I")))..text
		surface.SetFont("Trebuchet24")
		local size = surface.GetTextSize(text)
		self:DrawText(text,"Trebuchet24",4,4,s.f1)
		self:DrawText(os.date(":%S %p"),"Trebuchet18",6+size,4,s.f1,0)
		self:DrawText(os.date("%A %d"),"Trebuchet18",4,22,s.f1,0)
		self:DrawText(os.date("%b"),"Trebuchet18",self.w-4,22,s.f1,2)
		
		text = os.date("%d.%m.%Y")
		surface.SetFont("Trebuchet18")
		local size = surface.GetTextSize(text)
		self:DrawText(text,"Trebuchet18",self.w-4,40,s.f1,2)
		
		if CurTime()%2 > 1 then	
			self:DrawRect(4+(1-CurTime()%1)*(self.w-size-16),44,4,10,s.c3)
		else
			self:DrawRect(4+CurTime()%1*(self.w-size-16),44,4,10,s.c3)
		end
		
		self:DrawWindowPost()
	end
}
























































